@use "sass:math";

.copyable-input__value-container {
  position: relative;
}

.copyable-input__value {
  width: 100%;
  font-size: #{math.div(16, $base-font-size)}rem;
  .copyable-input--with-preview & {
    border-radius: 2px 0 0 2px;
  }
}

.copyable-input__label {
  width: 100%;
  font-size: #{math.div(12, $base-font-size)}rem;
  padding-bottom: #{math.div(5, $base-font-size)}rem;
  @include themify() {
    color: getThemifyVariable('inactive-text-color');
  }
}

.copyable-input__label-container {
    display: flex;
    justify-content: space-between;
}

.copyable-input {
  padding-bottom: #{math.div(30, $base-font-size)}rem;
  display: flex;
}

.copyable-input__value-container {
  width: 100%;
}

.tooltipped::after {
  @include themify() {
    background-color: getThemifyVariable('button-background-hover-color');
    color: getThemifyVariable('button-hover-color');
  }
  font-family: Montserrat, sans-serif;
  font-size: #{math.div(12, $base-font-size)}rem;
}

.tooltipped-n::before,
.tooltipped::before
 {
  @include themify() {
    color: getThemifyVariable('button-background-hover-color');
    border-top-color: getThemifyVariable('button-background-hover-color');
  }
}

.copyable-input__preview {
  @extend %button;
  @include themify() {
    align-self: flex-end;
    border-radius: 0 2px 2px 0;
    padding: #{math.div(2, $base-font-size)}rem 0;
  }
  & svg {
    height: #{math.div(30, $base-font-size)}rem;
    width: #{math.div(30, $base-font-size)}rem;
  }
}
